<?php include "../public/header.php";?>
<?php include "../public/header_show.php";?>
<body id="xiangqingPage">
<div id="xiangqingBox">
    <div class="page-title">
        <div class="page-title-con">
            <span class="pageshowtitle">详情</span>
            <div class="page-title-opt-list">
                <?php include "../public_flow/flow_show_optbut.php";?>
                <button class="layui-btn layui-btn-sm btn-light marginr5 opt">
                    操作<i class="layui-icon layui-icon-down layui-font-12"></i>
                </button>
                <span id="page-close" class="page-close" onclick="layer_close()">×</span>
            </div>
        </div>
    </div>
    <div class="main-container">

        <div><?php include "../public_flow/flow_show_info.php";?></div>

        <div class="table-box tablenes">
            <div class="title">基本信息</div>
            <table class="layui-table">
                <tbody>

                <tr><td class="tt">持证人</td><td id="person_name" class="tv"></td><td class="tt">人员性质</td><td id="person_nature" class="tv"></td></tr>
                <tr><td class="tt">合同编号</td><td id="number" class="tv"></td><td class="tt">签约日期</td><td id="sign_dt" class="tv"></td></tr>
                <tr><td class="tt">聘用资格</td><td id="qualification" class="tv"></td><td class="tt">聘用渠道</td><td id="channel" class="tv"></td></tr>
                <tr><td class="tt">聘用说明</td><td class="tv" id="employ_explain" colspan="3"></td></tr>

                <tr><td class="tt">是否可驻场</td><td id="iszhu_name" class="tv"></td><td class="tt">证件用途</td><td id="purpose" class="tv"></td></tr>
                <tr><td class="tt">支付方式</td><td id="pay_type" class="tv"></td><td class="tt">聘费(元)</td><td id="money" class="tv"></td></tr>
                <tr><td class="tt">聘费说明</td><td class="tv" id="pin_explain" colspan="3"></td></tr>

                <tr><td class="tt">聘期开始时间</td><td id="start_dt" class="tv"></td><td class="tt">聘期结束时间</td><td id="end_dt" class="tv"></td></tr>
                <tr><td class="tt">项目补贴(元/月)</td><td id="subsidy" class="tv"></td><td class="tt">出场费(元/次)</td><td id="out_fee" class="tv"></td></tr>
                <tr><td class="tt">银行账户名称</td><td id="account" class="tv"></td><td class="tt">银行账号</td><td id="account_num" class="tv"></td></tr>

                <tr><td class="tt">开户行</td><td class="tv" id="open_bank" colspan="3"></td></tr>
                <tr><td class="tt">备注</td><td class="tv" id="explain" colspan="3"></td></tr>
                </tbody>
            </table>
        </div>

        <div><?php include "../public/upinfo_show.php";?></div>

        <div><?php include "../public_flow/flow_show_flowrelas.php";?></div>

        <div><?php include '../public_flow/flow_show_shenlog.php'?></div>
        <div><?php include '../public_flow/flow_show_talk.php'?></div>
        <div><?php include '../public/opt_browse.php'?></div>
    </div>
</div>
<script>
    var param_id = getQueryVariable('id') || 0;

    layui.use(['form', 'layer', "laytp",'element','dropdown','laypage','table','soulTable'], function() {
        var laypage = layui.laypage, table = layui.table, dropdown = layui.dropdown, form = layui.form, soulTable = layui.soulTable,element = layui.element;

        facade.ajax({url: ask_cert_employ_show, data:{id: param_id}}).done(function(res){
            if (res.code === 2000) {
                var data = res.data;
                $("#person_name").text(data.person_name);
                $("#person_nature").text(data.person_nature);
                $("#channel").text(data.channel);
                $("#number").text(data.number);
                $("#sign_dt").text(data.sign_dt);
                $("#qualification").text(data.qualification);
                $("#employ_explain").text(data.employ_explain);
                $("#iszhu_name").text(data.iszhu_name);
                $("#purpose").text(data.purpose);
                $("#pay_type").text(data.pay_type);
                $("#money").text(data.money+'('+chineseNumber(data.money)+')');
                $("#pin_explain").text(data.pin_explain);
                $("#start_dt").text(data.start_dt);
                $("#end_dt").text(data.end_dt);
                $("#subsidy").text(data.subsidy+'('+chineseNumber(data.subsidy)+')');
                $("#out_fee").text(data.out_fee+'('+chineseNumber(data.out_fee)+')');
                $("#account").text(data.account);
                $("#account_num").text(data.account_num);
                $("#open_bank").text(data.open_bank);
                $("#explain").text(data.explain);


                $(".pageshowtitle").text('聘费');
                public_upload_show_file('upload_files', res.data.files);
                render_from();
            }
        });

        public_get_readsandlog('cert_employ', param_id);
        showpage_dropopt();
    });



</script>
</body>
</html>




